Working version. Need to investigate possible delay in grabbing.