Updated to allow for IOException