Generic utility library