Completed the possibility to insert related resources