Add cylinder related functions.