Reverted booleans to functions for continuity.