Mobscript

Some changes to make a more general mobscript