Added more specific exceptions