Add sugrcube base functions

Change-Id: I0f920faf8f716838b9a7c9db807ac057ac103a3a