Refactored part of manager. Added GetFirstPage function.