Added error handling
Posts