Added simpler log() function