Added create apps function