Removed assignment by reference as deprecated in php 5.3+