Attemps to optimize solution