Use lib function for block placement instead of local function (that didn't work)