Changed model to stanmodel where applicable.