Mode to module; initial commit