Attempted to utilize hash table to find packet.

Added return type on all control functions