Testmode and beacon monitoring added back in.