Implement body_data and post_data functions