Last time I checked the only way to pass in the code was through the constructor.  I may have missed another function in the API.  I'll check again.