Updated build_sequence