Supporting php 5.3 on shared host. Some of the code can now be written much more cleanly.