Version 4, fail safe loops added and text fixes