Replace def with defn; dbg macro