Added Message Box for errors.