Updated create routine and updated routine functions library.