Some error handling and styling