Use chaining, refactor code, fix functioning, optimise code