Adding verbose logs to get more info when error occurs