Comment out scheduler after finding easier solution on stackoverflow. Leaving in but commented out for future knowledge