Achieved main functionality