Modularized it, it works, can be changed to get more info easily