Hopefully a less sucky version imported into IntelliJ