Fixed output issues. Now almost works with dynamic applications such as Nano.