Adding tasks for reading and writing blocks and key.