Added logger funcionality.