Fixed return value in set_frontend. Minor fixes.