Rename a few functions

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>