For proper ordering, master should be appended at the end