A basic attempt at making a single call library for both debug and jstrace