Well it will do what you want and I use it all the time for my little scripts, but it is not particluarly maintenance friendly. What if someone inserts another shift before yours for example? How robust you want your code to be will determine how you code this (and everything else too really).