Horrible basic frontend code