Added current page functionality.