Removed unnecessary instance variable caching and also input prompt