Added others input checks and initialized directions object