Added set and get methods for spin

Signed-off-by: Arif <arif@bansberrysg.com>