Add direction to message logging, make build