Cleaned up coding

Added polling intervals