Initial checkin of basic controller script forked from rayshobby.