Fixed some things.

Nitpicks and added a one time called function.