Also exposing some of the error handling functions