Rearranging code so that it supports php 5.0 Commenting out the existing code for future upgrade up to php 5.3