Simplified the code a little bit. Went a little too happy with pointers to pointers on the rush of it.