Added functionality for partial compilation