Refactor of brainfarts.