Sanitized code
Modifications on function date