Performs basic operations