Added domain as an argument, default [-1,0,1].