Solved several prblems.