Define Latent Functions