Made level definition units relative, not px