Use rt_array function instead of repeating myself.