Added main funcs