Uses domain function instead of log helper