Add n-step up and down functions