Added try except with nice error message