Lock for every Library Call, Return String instead of Error Code