I actually got it to work right the first time (aside from some problems with getting the time right)!