Added exit but now compiles statement twice????