Registering listeners
check __global__ only if required