Tested on Linux & fixed output