This reverts commit f122ed57bf. This commit created a critical errors and made the core instable. The feature should be reimplemented in a better way.
f122ed57bf