Solved several problems