Scary refactor