Added support for units, added oldPlayer PHP code