Half way of the function