Add seed file and factor out of main app