Added the trigger function
Added compressed version