Added constraints support for text loaders