Original VVS PHP code