Refactored the LinerManager class.