Added errors and instance not found functionality.