Add some functions for n=3 case