Remember to use proper case in queries.

Change Thread.Sleep to Monitor.Wait