Support context input in line source