subroutine
subroutine - noun
a set sequence of steps, part of larger computer program
subroutine - thesaurus
function
procedure
routine
subprogram