Starting to mess with this stuff to make it work for Durandal.