Added basic and advanced functions