Adapted for real world setup.