This was actually coded by Josh, i am just using it here for trials on improving the whole application.