Added method for computing step form.  Factored with prologue code.