Added in beginning of internal logging function; added "prepend" method