Tested the code. Works as needed to be now im adding my comments.