Merge pull request #40 from villanuevawill/gridEngine

Included callback functionality in loop
Fixed callback bug