Added code of the unsharp function