Added interface for factorials