I decided that this was as far as I could get because the scripting was getting to complicated and there were too many bugs.