Taken from nqueens, had issue forking own repo