Added readonly parameter for issue #5