Converted code to use PHP namespaces.