it makes things that look like logs. the else $2 == $null part is just there so it's not too short to post lol.