Refactor various things into functions