Added static method set_up_vars() to fix get_offset() and get_rows_per_page()