Fixed expired code, added night test mode