Logging 

nitpick: use consistent header style throughout the file and repo (# instead of ====)