Made functions private in application controller