Revert "Renaming functions to be have clearer names"

This reverts commit aa713fb98f71eae450cf81662fba1c35564a3235.
Revert "Adding functions for working with the message queue."

This reverts commit a4ba1a236f3b121690e88db9a0492ef7e55e4082.