Convenience functions, error reporting