Holy crap that's a shit ton of functions.