Move model into own file.