Exported code in /status to function and callback