Fixed read issue with help from NigeSmall's tutorial