Moved log match to better place