Added new function to tube.c