Changes suggested by Aviral, to improve the load time - works great. Can push the effeciency further.