Allowing flexibiliy in certian function