Added timeout flag. Moved configs to new config.h.