Refactored out multiplication routine.