Made function more flexible