Adding read block function