Adding the Goals Logic.

Signed-off-by: Nico Magni <nicomagni@wolox.com.ar>