Add flag for controlling signature validation