tidy up script loading. Added timer.