Added BlockListener class