Splitapp code