Condensed the mod commands into three functions (which I hope work)