This does not do what you expect. Most likely, you want `sleep(Z / 2.)`. In any case, can you elaborate how the 2 is derived here?