Added very simple log support