Implemented line limits for rotation