Remember to assign error variable