General cleanup; basic compiled formula support