Polished PHP interface somewhat