Fixed some pilot bugs.