Changed how timeouts work and added ability to add frequencies, still crashing sometimes