Created new error-handling methods, for better consistency