Moved php functions.