Update type to allow for more possible errors