Removal dependencies and optmisation of result