Modified frontend code.