Refactored mosh into its own task