Added some sequencing based logic