@Manishearth
Use a callback function
fe88234