Added return statement when target is not set