Create main functionality