Make compatible with morgan's frontend