Currently, return codes are boolean integers, not particularly illuminating. It would be good to have a better protocol for error handling.