Imported logging to adaptor
Updated to use newer warn function