Changed parameter type to avoid confusion
Added mean theory