Implemented loading from file