Fixed a bunch of stuff including fn/ln.