Improved error handling.
Refactored the post value storage.