Added blockVal function