Pushed kernel extraction to main()