Initial implementation of getblocks including custom options