Added phil's 5 stage pipeline