Main almost finished