Maybe move those to pattern matching?