Added block read/ write funcs