Add slew code. Resolves #23