added use_variable_length variable to select the system size