Ugh. Off by 1 error.

Also logs FTW