Made functions local