Remove scanf use