Cleaner model initialization and route code. Thanks teddyZ