Removed File oject fn and merged it into Scanner initialization