Added n function