Added main functions to stubs.