Moved debug func outside of wiola src