Implemented the post functionality.