Synching stuff from my work on Sense

Signed-off-by: zeroblade1984 <zeroblade1984@gmail.com>