Added a better code example with an example log