Fixed alternate template use and made rlength reqired