Figured out a way to return error.