Refactoring for usage with threaded-application, add part instance