Implemented methods, trying to get it to open the correct file type