Fixing division by zero + fixing function name.