Tidy implementation.