Added implementation of WeakHandler