Main implementation complete