Implements main feature.