Added log
Added exception catching