Revised some code to meake it compatible with bluehost.  Production