Add context paramenter.
Rename main function.