Man, some of this code is really getting beautiful