Adapted for local test