Make swap take two params.