Added main functions file