Front and Backend identical code