Add automatic loader for model