Added library functions