Completing learning helper functions