The formula interface for layer functions