Added 'currentPage' global variable