Fix motd sketch

Wrote motd sketch to work with 3.5.x and accept parameters for all definitions.