Here is the file where the magic happens. You've already looked over this, and I haven't changed anything since.