Finalized code. Tested codes. Works. :)