Main fun created