Added semi-working sidepot code