Made functions private, implemented Sigma functions