Fixed the 'Task not serializable' issue and unresolved relation to logical relation issue