Removed debug file
Added check for null in transfer