Added functions for variable length registration