Added some changes to plethora script