Added manual transfer query logic