Changed wait timeout before creating friendship.
Added checking is friendship already exists, before creating.