Develop logic