Maxvol function as tt.maxvol.maxvol