All Methods Re-Writtend and added support for multiple programs