Added functions for changing origin example.