Added Function to work with online