KMP Shared Logic