Fixed some things that broke when I used it.

Add some functionality to deal with some of the problems toSource caused with other libraries I was using.