Added pocket detection.

Signed-off-by: Christopher Müller <chris@mindengine.de>