Adding optparse for better options parsing