Implements Callbacks

Fix #7.