Implemented GetBlock function