Added sanitize functionality with kargs