Rewrite most of walls command, fixes #27