Adding in some error handelling to stop the constant terminal screwup when an error occurs