Pass mod by reference again.

Also, my daily indentation cleanup routine ;-)