Copy pasted code block with irrelevant comments :(