Parameterized Watermark function