Solve #77, make methods public to make accessable from closures in php 5.3.