Rudimentary error handling (with bools)