Replicate of sample_app