Added check for assignability of handlers