Main business logic

Main business logic