Loader: Add classes option

Fixes gh-7699