Started work on logic