Added quick macro for pthat weight derivation