Finished, added main and events