More debugging written; testing message writing