Added UI Thread functionality.