Added logic to get receptor based on pattern entered