Added error checking to post retrievals.