I realize this is a bay port and that you did not code this, but, could you change it to use sleep instead?