Also adding the original PHP class for reference.