Further refractions and added the basic part of TargetAndCast true/false checkings.

Signed-off-by: MaloW <malow@spray.se>