Implement Main module