Really should use an options hash for this sort of thing.