Main wrapper