All the code from nightWatch