Cleaned and refined code