Implement scope and display period function