Add support of last step for pipeline