Improve get_post method.