Main method introduced.