Switched to rb-inotify and gave this thing some decent structure.