Add licensing information and use extra functions to return the status.