Added package util function to lib