Move methods inside module.
Reformat.