Added POSTS_PER_PAGE for pagination.