Fixed missing parameter and added stats module