Add missing prepare_post method