Parser fixed

Now works as intended, prints in console for debug.