Remove silly debug printing
Added independent_app API (very hackish)