Adding output functionality for hardlinks