Fixed return values when using profile decorator and updated logging