Added optional parameters to anchor functions