Added proper getop support.