Remove logs and fixed enum problem.