Changed pass message from printf to puts to reduce code