Added --overrideResponse flag and function