Implemented the Target logging in form.cs