Added variable mapLength

Big change in rendering options