Added support for loading other file types.