Moved core functions to redstone.core