This is a PHP clone of drdanick (Java) RTKInterface