Fixed almost every deprecated problem.