Added main cass and functionality