Added logging and SString2