Added a space to debug statements;added case to downlink where there is only one entry