This is whats causing the midnight bug. Combine these 3 methods