Added library function generator