Improved post function.