Added method for target calculation