Missing parenthesis and few unused variables