Use proper variables in compile