Delomboked the code to make it more accessible for non-IDE folk