Added pagination.
Added map functionality.