Fixed spammy gear assignment, improved argument passing.